import request from "@/app/http/axios"

export const checkLogin = (code: string) => {

}

// export const login = (token: string) => {
//     const res = request.get("/user/doLogin?username=zhang&password=123456");
//     console.log(res);
//     return res;
// }

type Res = {
    code: number,
    msg: string,
    data: any
}

export const login = (token: string): Promise<Res> => {
    return request({
        url: "/user/doLogin?username=zhang&password=123456",
        method: "get",
        // params: {token}
    });
};
